<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/jsp/manage/common/taglibs.jsp" %>
<div style="padding: 5px;font-family:微软雅黑;">
    <table class="tableForm" width="100%">
        <tr>
            <th>商户类型:</th>
            <td>
                <c:forEach items="${merchantTypes}" var="e">
                    <c:if test="${merchantEntity.merchantType == e.key}">
                        ${e.value}
                    </c:if>
                </c:forEach>
            </td>
        </tr>
        <c:if test="${merchantEntity.merchantType != 'AGENT_MERCHANT'}">
            <tr >
                <th>上级商户ID:</th>
                <td>${merchantEntity.parentMerchantId}</td>
            </tr>
        </c:if>
        <tr>
            <th>商户ID:</th>
            <td>${merchantEntity.merchantId}</td>
        </tr>
        <tr>
            <th>商户名称:</th>
            <td>${merchantEntity.merchantName}</td>
        </tr>
        <tr>
            <th>联系人:</th>
            <td>${merchantEntity.contact}</td>
        </tr>
        <tr>
            <th>手机号:</th>
            <td>${merchantEntity.mobile}</td>
        </tr>
        <tr>
            <th>邮箱:</th>
            <td>${merchantEntity.email}</td>
        </tr>
        <tr>
            <th>资金账户:</th>
            <td>${merchantEntity.accountNo}</td>
        </tr>
        <tr>
            <th>营业执照号:</th>
            <td>${merchantEntity.licenceNo}</td>
        </tr>
        <tr>
            <th>地址:</th>
            <td>${merchantEntity.address}</td>
        </tr>
        <tr>
            <th>营业执照图片地址:</th>
            <td>${merchantEntity.licencePath}</td>
        </tr>
        <tr>
            <th>经营范围:</th>
            <td>${merchantEntity.busScope}</td>
        </tr>
        <tr>
            <th>经营类目:</th>
            <td>${merchantEntity.category}</td>
        </tr>

        <tr>
            <th>经营商品:</th>
            <td>${merchantEntity.goods}</td>
        </tr>
        <tr>
            <th>法人姓名:</th>
            <td>${merchantEntity.legalName}</td>
        </tr>
        <tr>
            <th>法人证件类型:</th>
            <td>
                <c:forEach items="${certTypes}" var="e">
                    <c:if test="${merchantEntity.legalCertType == e.key}">
                        ${e.value}
                    </c:if>
                </c:forEach>
            </td>
        </tr>
        <tr>
            <th>法人证件号:</th>
            <td>${merchantEntity.legalCertNo}</td>
        </tr>
        <tr>
            <th>法人证件正面图片地址:</th>
            <td>${merchantEntity.legalCertFrontPath}</td>
        </tr>
        <tr>
            <th>法人证件反面图片地址:</th>
            <td>${merchantEntity.legalCertBackPath}</td>
        </tr>
        <tr>
            <th>法人证件到期时间:</th>
            <td>${merchantEntity.legalCertValidDate}</td>
        </tr>
        <tr>
            <th>银行编码:</th>
            <td>
                <c:forEach items="${bankCodes}" var="e">
                    <c:if test="${merchantEntity.bankCode == e.key}">
                        ${e.value}
                    </c:if>
                </c:forEach>
            </td>
        </tr>
        <tr>
            <th>银行账户类型:</th>
            <td>
                <c:forEach items="${publicTags}" var="e">
                    <c:if test="${merchantEntity.bankAccountType == e.key}">
                        ${e.value}
                    </c:if>
                </c:forEach>
            </td>
        </tr>
        <tr>
            <th>银行卡账户名:</th>
            <td>${merchantEntity.bankCardName}</td>
        </tr>
        <tr>
            <th>银行卡号:</th>
            <td>${merchantEntity.bankCardNo}</td>
        </tr>
        <tr>
            <th>银行卡类型:</th>
            <td>
                <c:forEach items="${bankCardTypes}" var="e">
                    <c:if test="${merchantEntity.bankCardType  == e.key}">
                        ${e.value}
                    </c:if>
                </c:forEach>
            </td>
        </tr>
        <tr>
            <th>开户省:</th>
            <td>${merchantEntity.bankProvince}</td>
        </tr>
        <tr>
            <th>开户市:</th>
            <td>${merchantEntity.bankCity}</td>
        </tr>
        <tr>
            <th width="25%">创建时间:</th>
            <td><fmt:formatDate value="${merchantEntity.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
        </tr>
        <tr>
            <th>更新时间:</th>
            <td><fmt:formatDate value="${merchantEntity.updateTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
        </tr>
    </table>
</div>
